package com.zzzy.doc.vo.template;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Schema(description = "新增模板")
@Data
public class DocTemplateAddReq {

    @Schema(description = "模板名称")
    @NotBlank(message = "模板名称不能为空")
    @Length(max = 100, message = "模板名称不能超过100个字符")
    private String name;


    @Schema(description = "说明")
    @Length(max = 255, message = "说明不能超过255个字符")
    private String memo;
}
